import request from "@/utils/request";

// 查询采购退换货列表
export function listErpProcudeReturn(query) {
  return request({
    url: "/erp/ErpProcudeReturn/list",
    method: "get",
    params: query,
  });
}

// 查询采购退换货详细
export function getErpProcudeReturn(procudeReturnId) {
  return request({
    url: "/erp/ErpProcudeReturn/" + procudeReturnId,
    method: "get",
  });
}

// 新增采购退换货
export function addErpProcudeReturn(data) {
  return request({
    url: "/erp/ErpProcudeReturn",
    method: "post",
    data: data,
  });
}

// 修改采购退换货
export function updateErpProcudeReturn(data) {
  return request({
    url: "/erp/ErpProcudeReturn",
    method: "put",
    data: data,
  });
}

// 修改采购退换货
export function auditErpProcudeReturn(data) {
  return request({
    url: "/erp/ErpProcudeReturn/audit",
    method: "put",
    data: data,
  });
}

// 删除采购退换货
export function delErpProcudeReturn(procudeReturnId) {
  return request({
    url: "/erp/ErpProcudeReturn/" + procudeReturnId,
    method: "delete",
  });
}
